package com.tanfuqi.sicent.client.mapper

import org.apache.ibatis.annotations.Param
import org.apache.ibatis.annotations.Select

class OnlineUser(var cardId: String = "", var computer: String = "", var shopName: String = "")
interface OnlineMapper {
    @Select("SELECT sCardId as cardId,sCom as computer from tStat where sIp=#{computer};")
    fun getOnlineCardId(@Param("computer") computer: String): OnlineUser

    @Select("SELECT sCardId as cardId,sCom as computer from tStat where sCom like #{name};")
    fun getOnlineCardIdByComputerName(name: String): OnlineUser?

}
